﻿namespace Bango.WindowsPhone7.SDK
{
	internal class BangoStatic
	{
		internal static System.String ConnectionType(System.Int32 connectionType)
		{
			System.String returnValue = "OTHER";

			switch (connectionType)
			{
				case BangoConstants.WIFI_CONNECTION:
					returnValue = "WIFI";
					break;
				case (System.Int32)Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.MobileBroadbandGsm:
				case (System.Int32)Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.MobileBroadbandCdma:
					returnValue = "OPERATOR";
					break;
			}

			return returnValue;
		}

		//COMMENT : Currently unavailable in WP7 - Code has been left in should it become available.
		internal static System.String OperatorConnectionType(System.Int32 operatorConnectionType)
		{
			System.String returnValue = "OTHER";
			//switch (operatorConnectionType)
			//{
			//    case android.telephony.TelephonyManager.NETWORK_TYPE_GPRS:
			//        returnValue = "GPRS";
			//        break;
			//    case android.telephony.TelephonyManager.NETWORK_TYPE_UMTS:
			//        returnValue = "UMTS";
			//        break;
			//    case android.telephony.TelephonyManager.NETWORK_TYPE_EDGE:
			//        returnValue = "EDGE";
			//        break;
			//}


			return returnValue;
		}
	}
}
